package com.fjec.market.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fjec.common.protocol.JsonResult;
import com.fjec.market.entity.BizFavorite;
import org.apache.kafka.common.protocol.types.Field;

/**
 * <p>
 * 018.收藏商品表 服务类
 * </p>
 *
 * @author admin
 * @since 2020-09-16
 */
public interface IBizFavoriteService extends IService<BizFavorite> {

    /**
     * 保存收藏
     *
     * @param skuId
     * @return
     */
    JsonResult saveFavorite(Long skuId);

    /**
     * 删除收藏
     *
     * @param skuId
     * @return
     */
    JsonResult deleteBySkuId(Long skuId);

    /**
     * 查询收藏列表
     *
     * @return
     */
    JsonResult favoriteList(Page page);
}
